package com.lingkun.demo.config.shiro;

import org.apache.shiro.authc.UsernamePasswordToken;


//自定义
public class CustomUsernamePasswordToken  extends UsernamePasswordToken {
    private String jwtToken;

    public CustomUsernamePasswordToken(String jwtToken) {
        this.jwtToken = jwtToken;
    }

    //获取token的用户名
    @Override
    public Object getPrincipal() {
        return jwtToken;
    }

    //获取token的密码
    @Override
    public Object getCredentials() {
        return jwtToken;
    }
}
